<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Graphite2-1.3.13
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;10.&nbsp;Graphics and Font Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="glm.html" title="GLM-0.9.9.7">Prev</a>
          <p>
            GLM-0.9.9.7
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="harfbuzz.html" title=
          "HarfBuzz-2.6.4">Next</a>
          <p>
            HarfBuzz-2.6.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="graphite2" name="graphite2"></a>Graphite2-1.3.13
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Graphite2
        </h2>
        <p>
          <span class="application">Graphite2</span> is a rendering engine
          for graphite fonts. These are TrueType fonts with additional tables
          containing smart rendering information and were originally
          developed to support complex non-Roman writing systems. They may
          contain rules for e.g. ligatures, glyph substitution, kerning,
          justification - this can make them useful even on text written in
          Roman writing systems such as English. Note that <span class=
          "application">firefox</span> by default provides an internal copy
          of the graphite engine and cannot use a system version (although it
          can now be patched to use it), but it too should benefit from the
          availability of graphite fonts.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/silnrsi/graphite/releases/download/1.3.13/graphite2-1.3.13.tgz">
                https://github.com/silnrsi/graphite/releases/download/1.3.13/graphite2-1.3.13.tgz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 29616d4f9651706036ca25c111508272
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 6.4 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 27 MB (with tests add docs)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU (with tests and docs)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Graphite2 Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="cmake.html" title=
          "CMake-3.16.4">CMake-3.16.4</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="freetype2.html" title=
          "FreeType-2.10.1">FreeType-2.10.1</a>, <a class="xref" href=
          "python2.html" title="Python-2.7.17">Python-2.7.17</a>, and
          <a class="ulink" href=
          "http://sourceforge.net/projects/silgraphite/files/silgraphite/2.3.1/">
          silgraphite</a> to build the <span class=
          "command"><strong>comparerender</strong></span> test and
          benchmarking tool, and if that is present, <a class="xref" href=
          "harfbuzz.html" title="HarfBuzz-2.6.4">HarfBuzz-2.6.4</a> to add
          more functionality to it (this is a circular dependency, you would
          need to first build <span class="application">graphite2</span>
          without <span class="application">harfbuzz</span>).
        </p>
        <p>
          To build the documentation: <a class="xref" href="asciidoc.html"
          title="Asciidoc-8.6.9">asciidoc-8.6.9</a>, <a class="xref" href=
          "doxygen.html" title="Doxygen-1.8.17">Doxygen-1.8.17</a>, <a class=
          "xref" href="../pst/texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> (or <a class="xref"
          href="../pst/tl-installer.html" title=
          "install-tl-unx">install-tl-unx</a>), and <a class="ulink" href=
          "http://dblatex.sourceforge.net/">dblatex</a> (for PDF docs)
        </p>
        <p>
          To execute the test suite you will need <a class="ulink" href=
          "https://pypi.python.org/pypi/FontTools">FontTools</a> (Python 3
          module), otherwise, the "cmp" tests fail.
        </p>
        <h4>
          Optional (at runtime)
        </h4>
        <p class="optional">
          You will need at least one suitable <a class="ulink" href=
          "http://scripts.sil.org/cms/scripts/page.php?site_id=projects&amp;item_id=graphite_fonts">
          graphite font</a> for the package to be useful.
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/graphite2">http://wiki.linuxfromscratch.org/blfs/wiki/graphite2</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Graphite2
        </h2>
        <p>
          Some tests fail if <a class="ulink" href=
          "https://pypi.python.org/pypi/FontTools">FontTools</a> (Python 3
          module) is not installed. These tests can be removed with:
        </p>
        <pre class="userinput">
<kbd class="command">sed -i '/cmptest/d' tests/CMakeLists.txt</kbd>
</pre>
        <p>
          Install <span class="application">Graphite2</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">mkdir build &amp;&amp;
cd    build &amp;&amp;

cmake -DCMAKE_INSTALL_PREFIX=/usr .. &amp;&amp;
make</kbd>
</pre>
        <p>
          If you wish to build the documentation, issue:
        </p>
        <pre class="userinput">
<kbd class="command">make docs</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          test</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
        <p>
          If you built the documentation, install, as the <code class=
          "systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">install -v -d -m755 /usr/share/doc/graphite2-1.3.13 &amp;&amp;

cp      -v -f    doc/{GTF,manual}.html \
                    /usr/share/doc/graphite2-1.3.13 &amp;&amp;
cp      -v -f    doc/{GTF,manual}.pdf \
                    /usr/share/doc/graphite2-1.3.13</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <code class="option">-DCMAKE_VERBOSE_MAKEFILE=ON</code>: This
          switch turns on build verbose mode.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">gr2fonttest, and optionally
              comparerender</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libgraphite2.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/{include,share}/graphite2 and
              optionally /usr/share/doc/graphite2-1.3.13</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="comparerender" name=
                    "comparerender"></a><span class="term"><span class=
                    "command"><strong>comparerender</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a test and benchmarking tool.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gr2fonttest" name="gr2fonttest"></a><span class=
                    "term"><span class=
                    "command"><strong>gr2fonttest</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a diagnostic console tool for graphite fonts.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libgraphite2" name="libgraphite2"></a><span class=
                    "term"><code class=
                    "filename">libgraphite2.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a rendering engine for graphite fonts.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-15 20:23:35 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="glm.html" title="GLM-0.9.9.7">Prev</a>
          <p>
            GLM-0.9.9.7
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="harfbuzz.html" title=
          "HarfBuzz-2.6.4">Next</a>
          <p>
            HarfBuzz-2.6.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
